/* Eric Meyer's Reset CSS v2.0 - http://meyerweb.com/eric/tools/css/reset/ */
/* 扩展版本 */
/* css reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}


/* 业务样式 */
 html,body{
     background: #000 url('./bg.jpg');
     
}
.starwars{
    perspective: 800px;
    transform-style: preserve-3d;
    height: 17em;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34em;
    /* 移动 自身的大小 */
    transform:  translate(-50%,-50%);
    
   
   
}
 img{
     width: 100%;
     

 }
 .star,.wars,.byline{
    position: absolute;


 }
 .star{
    top: -0.75em;
 }
 .wars{
    bottom: -0.5em;
 }
 .byline{

    color: #fff;
    font-size: 2.25em;
    left: -2em;
    right: -2em;
    text-align: center;
    text-transform: uppercase;
    top: 42%;
 }
 .star{
    /* 动画名字+keyframes 定义动作 */
    animation: star 5s ease-out infinite;
 }
 .wars{
    /* 动画名字+keyframes 定义动作 */
    animation: wars 5s ease-out infinite;
 }

 @keyframes star {
     0%{
         opacity: 0;
        transform: scale(1.5)
        translateY(-0.75em);

        }
     20%{
        opacity: 1;
      
        }
    89%{
        opacity: 1;
        transform: scale(1);
    }
    100%{
        opacity: 0;
        transform: translateZ(-1000em) ;

    }
 }
 @keyframes wars {
    0%{
        opacity: 0;
       transform: scale(1.5)
       translateY(0.5em);

       }
    20%{
       opacity: 1;
     
       }
   90%{
       opacity: 1;
       transform: scale(1);
   }
   100%{
       opacity: 0;
       transform: translateZ(-1000em) ;

   }
}
 .byline {
    animation: movie-byline 5s linear infinite;

 }
 .byline span {
   animation: span-letters 5s linear infinite;

   display: inline-block;


 }


 @keyframes movie-byline {
    0%{
        transform: translateZ(0.5em);
    }
   100%{
       transform: translateZ(0em) ;
   }
 }
 @keyframes  span-letters{
   0%,10%{
       opacity: 0;
       transform: rotateY(180deg);
   }  
   30%{
       opacity: 1;

   }  
   70%,86%{
       opacity: 1;
       transform: rotateY(0deg);
   }
   95%,100%{
       opacity: 0;
   }

 }